<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="ldap.requirements.html">« 需求</a></li>
      <li style="float: right;"><a href="ldap.configuration.html">运行时配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="ldap.setup.html">安装/配置</a></li>
    <li>安装</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="ldap.installation" class="section">
 <h2 class="title">安装</h2>
 <p class="para">
  LDAP support in PHP is not enabled by default. You will need to
  use the <strong class="option configure">--with-ldap[=DIR]</strong>
  configuration option when compiling PHP to enable LDAP support.
  DIR is the LDAP base install directory. To enable SASL support,
  be sure <strong class="option configure">--with-ldap-sasl[=DIR]</strong> is
  used, and that <var class="filename">sasl.h</var> exists on the system.
 </p>
 <blockquote class="note"><p><strong class="note">注意</strong>: 
  <strong>Note to Win32 Users</strong><br />
  <p class="para">
   为了使此扩展生效，
<abbr title="Dynamic Link Library">DLL</abbr> 文件必须能在 Windows 系统的
<var class="envar">PATH</var> 指示的路径下找到。如何操作的信息，请参见题为“<a href="faq.installation.html#faq.installation.addtopath" class="link">如何在 Windows 中将 PHP
目录加到 PATH 中</a>”的<abbr title="Frequently Asked Questions">FAQ</abbr>。虽然将
DLL 文件从 PHP 文件夹复制到 Windows 系统目录也行，但不建议这样做。
<em class="emphasis">此扩展需要下列文件在 <var class="envar">PATH</var> 路径中：</em>
   <var class="filename">libeay32.dll</var> and 
   <var class="filename">ssleay32.dll</var>, or, as of OpenSSL 1.1
   <var class="filename">libcrypto-*.dll</var> and <var class="filename">libssl-*.dll</var>
  </p>
 </p></blockquote>
 <p class="para">
  In order to use Oracle LDAP libraries, proper <a href="oci8.requirements.html" class="link">Oracle environment</a> has to be set.
 </p>
</div></div></div></body></html>